<?php
$sql =<<<EOF
CREATE TABLE IF NOT EXISTS `ims_wxz_eat_score` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `openid` varchar(100) NOT NULL,
  `nickname` varchar(100) NOT NULL,
  `avatar` varchar(255) NOT NULL COMMENT '用户头像',
  `scores` int(15) NOT NULL COMMENT '得分',
  `maxscores` int(15) NOT NULL COMMENT '最高得分',
  `share` int(10) NOT NULL COMMENT '分享次数',
  `datetime` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
EOF;
pdo_run($sql);